Electrostatic trapping of ultracold polar molecules