An Internal Model Approach to Implicit Fault Tolerant Control for Port-Hamiltonian Systems