First principles study of the structural and electronic properties of double perovskite Ba2YTaO6 in cubic and tetragonal phases