Pulse Shape Effects in Electrocaloric Cooling