Autonomous scanning probe microscopy investigations over WS2 and Au{111}