Reinforcement Learning Approach to Optimizing Profilometric Sensor Trajectories for Surface Inspection