A quantum chemical investigation of the electronic structure of thionine