Why do earthquakes occur along the plate boundaries?