Pick's theorem and the Todd class of a toric variety