An internal model approach to implicit fault tolerant control for port-Hamiltonian systems