Inverting Self-Organizing Maps: A Unified Activation-Based Framework