Elastic and electro-optical properties of XYZ (X = Li, Na and K; Y = Mg; Z = N, P, As, Sb and Bi) compounds