Phase detection of the NIR optical resonances of rectangular glass micro-capillaries