A rare exhibition of the Hobbit author’s life and art reveals an imaginary realm that continues to inspire new generations