On the treewidth and related parameters of random geometric graphs