Solar proton events in solar activity cycles 21–24