Switching effect and local conductivity in thin films of polydiphenylenephthalide