Seismic coupling and uncoupling at subduction zones