Viewpoint optimization for aiding grasp synthesis algorithms using reinforcement learning