In the Blink of an Eye: A Unified Theory for Feature Emergence in Generative Models