Atmospheric attenuation length for relativistic solar protons