Phase-driven Domain Generalizable Learning for Nonstationary Time Series