Dimension of invariant measures for affine iterated function systems