A compact optical-microwave phase detector based on a polarization modulator