A theoretical study of the electronic structure and spectroscopic properties of a new diatomic molecule, BeC