Text this: Energy Optimization for Motorized Spindle System of Machine Tools under Minimum Thermal Effects and Maximum Productivity Constraints