Temporal variations of geocoronal and heliospheric X‐ray emission associated with the solar wind interaction with neutrals