Stability analysis and trajectory optimization of vertical and deviated boreholes using the extended-Mogi-Coulomb criterion and poly-axial test data