Microscopic analysis of prolate-oblate shape phase transition and shape coexistence in the Er-Pt region