Phase-modulated X-Ray Emission from Cepheids due to Pulsation-driven Shocks