Gravina, Pietro, active 1782-1807, Archbishop of Nicea in partibus, Papal Nunzio at Madrid