What gives rise to the different geologic events to happen along the plates’ boundaries