A Method for Electronic Detection of Bovine Mastitis