Determining the Focal Mechanisms of Earthquakes by Full Waveform Modeling