Electrostatics of pyroelectric accelerators