On the elastic-perfectly plastic bending of the lithosphere under generalized loading with application to the Kuril Trench