Valence and conduction bands engineering in halide perovskites for solar cell applica- tions