Analyzing Milk Foam Using Machine Learning for Diverse Applications