A machine learning approach for the spatiotemporal forecasting of ecological phenomena using dates of species occurrence records