Large second harmonic generation in alloyed TMDs and boron nitride nanostructures