Changed SphericalGrid::in_grid function to use P.l rather than P.r so
that it works for both the thermal simulation and for creating images.
Removed any references to in_grid_raytracing, which is now obsolete.