Dynamic dipole polarizabilities of the ground and excited states of confined hydrogen atom computed by means of a mapped Fourier grid method