A probabilistic approach to forecasting of geomagnetic storms