Ab initio calculations of electronic structure of the BaCs molecule: adiabatic potential energy curves, spectroscopic constants, spin–orbit effect and permanent and transition electric dipole moments