Pātuhitia tēnei: The Gross-Zagier formula on Shimura curves