Crustal deformation during earthquake cycles