Nonlinear port controlled Hamiltonian systems under sampling