Topological insulator and magnetically doped topological insulator thin films by molecular beam epitaxy