Tunable electron affinity with electronic band alignment of solution processed dielectric