Emergence in cyber-physical systems: potential and risk