Energy band gap and optical properties of lithium niobate from ab initio calculations