Hemisphere m-line spectroscopy and its application to birefringent KTiOPO4 planar waveguides