Linear quadratic control of nonlinear systems with Koopman operator learning and the Nystr\"om method