Radiative shocks in spherical accretion