Text this: Development and application of a robotic coal analysis system for process control in coal preparation