A combined spectroscopic and theoretical study of oxo- and thiono-sparteines