Autonomous robotic nanofabrication with reinforcement learning