Construction of a general semilocal exchange-correlation hole model: Application to nonempirical meta-GGA functionals