A deformation method for determining the tsunami potential of earthquakes