The quasi-optical design of the QUaD telescope