What role did religion play in the arts in Islamic civilizations?