Controlling dynamical systems to complex target states using machine learning: next-generation vs. classical reservoir computing