The generalized dynamic factor model: One-sided estimation and forecasting