Bombardment of the polar-cap ionosphere by solar cosmic rays