Leo XII, Pope