Separation of gravitational-wave and cosmic-shear contributions to cosmic microwave background polarization.