A General Theory of Emergence in Engineered Systems