Negative definite functions on groups with polynomial growth