Theory, design, and demonstration of a new microwave-based undulator