Many ailments, such as irregular heartbeats, can be treated by electrical stimulation within the body. But current technology makes in-body devices, such as pacemakers, very bulky because they need big batteries.