Microphase separation under constraints: a molecular thermodynamic theory for polyelectrolytic amphiphilic model networks in water