Inelastic scattering of light by a cold trapped atom : effects of the quantum center-of-mass motion