who plays the dwarf king in the hobbit