A systematic computational study to understand the effect of metals (Mg, Ca, Sr) doping and external isotropic static pressure on phase stability, electronic band structure and optical properties of KNbO3