Earthquakes and bending of plates at trenches