Cross-spectral analysis of the X-ray variability of Markarian 421