Structural phase transition and opto-electronic properties of NaZnAs