Population of nuclear energy levels via photon-excited levels