Frequency- and polarization-dependent lensing of gravitational waves in strong gravitational fields