A General Analytical Framework for Fast Solving Nonlinear MPC Problems in the Linear Koopman Space