Coherence in X-ray physics