Consensus-based construction of high-dimensional free energy surface