Radiation hardness investigation of avalanche photodiodes for the Projectile Spectator Detector readout at the Compressed Baryonic Matter experiment