Thermochemical resistive switching: Materials, mechanisms and scaling projections