Text this: Impact of vacancies in halide perovskites for batteries and supercapacitors