Text this: A real-time model for flotation by online characterisation of the froth phase