Function for fitting mass preserving soil attribute depth function