Liquid-filled electrostatic generator