Theoretical approach to embed nanocrystallites into a bulk crystalline matrix and the embedding influence on the electronic band structure and optical properties of the resulting heterostructures