Data-driven system identification using quadratic embeddings of nonlinear dynamics