Port-Hamiltonian modelling of nonlocal longitudinal vibrations in a viscoelastic nanorod