PMSM Hamiltonian Energy Shaping Control with Parameters Self-tuning PID Control