Origin of earthquakes from plate tectonics and fault behavior