A Generalized Semi-Markov Process for Modeling Spatially and Temporally Dependent Earthquakes