Polarization analyzer for fiber optics and free beam applications