Polarizing beamsplitter based on the effects of birefringent and resonance anomaly