Emission of whistler-mode waves and diffusion of electrons around interplanetary shocks