Thickness gauges for films and flexible packaging