Structural, electronic and ferroelectric properties of BaTcO3