Enhanced metrology using preferential orientation of nitrogen-vacancy centers in diamond