Optimal growth, model reduction and control in a separated boundary-layer flow using global eigenmodes