Electromagnetic waves in a uniform gravitational field and Planck’s postulate