A method for the inline measurement of milk gel firmness using an optical sensor