A deep learning model to emulate simulations of cosmic reionization