Text this: Time-harmonic electromagnetics with exact controllability and discrete exterior calculus