Realization of controlling the band alignment via atomic substitution