Functional heterostructure based on colloidal nanocrystals