A Method to Detect Flakes and Clots in Milk in Automatic Milking Systems