Brayton-moser formulation of infinite dimensional port-hamiltonian systems with application to boundary control