Optical power meter working principle