Energy and symmetry of dd excitations in undoped layered cuprates measured by Cu L3 resonant inelastic x-ray scattering