who turns into a bear in the hobbit