Data-Adaptive Dimensional Analysis for Accurate Interpolation and Extrapolation in Computer Experiments