Sharp Ul’yanov-type inequalities using fractional smoothness