Design and characterization of an implantable system for shockfree cardiac rhythm control