Role of the Church in Spanish and Portuguese empires