An automated artifact detection and rejection system for body surface gastric mapping