Gravitational attenuation and the internal heating of planetary bodies