Optoelectronic van der Waals heterostructure devices and the growth of C-doped hBN by MBE