Modeling of planar and nano rod heterostructure