Forecasting methods for occurrence and magnitude of proton storms with solar hard X rays