Detection of inadvertent tracheal placement of nasogastric tubes