Output Regulation of Nonlinear Systems in a Koopman Operator Framework