Integral trees with given nullity