The narrow band bap double perovskites X2CuInCl6 (X = K, Rb, Cs) for optoelectronics, and thermoelectric applications