Automated detection of ventricular fibrillation to guide cardiopulmonary resuscitation.