A Metropolis algorithm combined with Nelder–Mead Simplex applied to nuclear reactor core design