Molecular mechanism of rigidity- and planarity-promoted, state-dependent doping of conjugated ladder-type molecules. (3rd October 2022)