Tunable resistance switching in solution processed chromium-doped strontium titanate nanoparticles films.