Determination of factor of safety of a slope under plane and circular failure