Brayton-Moser formulation of high-order distributed port-Hamiltonian systems with one-dimensional spatial domain