Modulating electromagnetic waves