Determination of focal mechanism solution using initial motion polarity of P and S waves