SOLAR: Switchable Output Layer for Accuracy and Robustness in Once-for-All Training