Synthesis and characterization of water soluble polyesters and their imides for insulation applications