How are batteries chosen for medical devices?