Multilevel Resistive Switching Memory Based on a CH3NH3PbI 3−xClx Film with Potassium Chloride Additives