Modeling Nonstationarity Using Locally Stationary Basis Processes