The influence of solar proton events on the ozone layer