Air-stable lead-free perovskite thin film based on CsBi3I10 and its application in resistive switching devices.