Role of spin states in the process of electron energy transformation in P3HT films, doped KI salt