D-branes and K-theory in 2D topological field theory