Instrument-independent specification of the diffraction geometry and polarization state of the incident X-ray beam