Magnitude determination for deep-focus earthquakes