System for real-time control of semiconductor wafer polishing