Organic/inorganic self-doping controlled crystallization and electronic properties of mixed perovskite solar cells