how earth quakes occurs and what changes they bring