Quasi static field analysis of electrical machines using an h hierarchical adaptive finite element method