Modeling and control of a Power Electronic Transformer within the Hamiltonian Systems Framework