The Emperor's New Mathematics: Western Learning and Imperial Authority During the Kangxi Reign (1662-1722)