An EMG-Based Objective Function for Human-in-the-Loop Optimization