Direct determination of resonance phase shifts of soft x-ray diffraction in thin films by momentum-transfer-sensitive three-wave interference