the photon emitted in the n = 2 to n = 1 transition has energy