Simulating weathering of basalt on Mars and Earth by thermal cycling