Phase signal definition for electromagnetic waves in X-ray crystallography