Nigerian stocks gain N317 billion on heavy demand for teleco