GOSH: derivative-free global optimization using multi-dimensional space-filling curves