Polarization diversity close to the optical bound states in the continuum.