d-d excitations in bilayer manganites probed by resonant inelastic x-ray scattering