Nitrogen doping of Te-based II–VI heterostructures