KMS states on the C∗-algebras of finite graphs