Electronic structures of radical-pair-forming cofactors in a heliobacterial reaction center