Energetic Cost of Measurements Using Quantum, Coherent, and Thermal Light.