Time-series forecasting of mortality rates using deep learning