Determination of source parameters by amplitude equalization of seismic surface waves: 2. Release of tectonic strain by underground nuclear explosions and mechanisms of earthquakes