An electro-optic modulation technique for direct and accurate measurement of birefringence