Trench curvature and deformation of the subducting lithosphere