Sharapova grinds out first win but still exits WTA Finals