Output feedback control of nonlinear quadratic systems