Evolutionary self-consistent models of HII galaxies