Radiation hardness of high gain avalanche photodiodes