High-resolution electrocaloric and heat capacity measurements in barium titanate