An electromagnetic detector for very-high-frequency gravitational waves