Automated Model Generation and Observer Design for Interconnected Systems : A Port-Hamiltonian Approach