Spin dynamics in NaFeAs and NaFe0.53Cu0.47As probed by resonant inelastic x-ray scattering