Robotic Table Wiping via Reinforcement Learning and Whole-body Trajectory Optimization