Electronic structure of the 1,3,5-tridehydrobenzene triradical in its ground and excited states