Structural phase transformation, insulator to semiconductor transition by Be/Sr doping and impact on optical properties of KMgF3 fluro-perovskite