First principles calculations of structural, electronic and optical properties of BaLiF3