Diffraction of real and virtual photons in a pyrolytic graphite crystal as source of intensive quasimonochromatic X-ray beam