AED with automated shock delivery