Pebble dynamics and accretion on to rocky planets – II. Radiative models