Synthesis and characterization of nanocomposites consisting of two dimensional semiconducting nanocrystals grown within a suitable template