Microscopic treatment of shape coexistence in even-even nuclei and related extension of IBM