Characterization of ideal semigroups of certain classes of regular semigroups and congruences on e-inversive semigroups