Structural, optical, and electronic properties of barium titanate: experiment characterisation and first-principles study