What changed the role and importance of organized religion in Portugal