Shape-coexisting rotation in neutron-deficient Hg and Pb nuclei