Optimal Hölder-Zygmund exponent of semi-regular refinable functions