How were churches and royal power related in Europe?