Robust and Swiftly Reversible Thermochromic Behavior of a 2D Perovskite of (C6H4(CH2NH3)2)(CH3NH3)[Pb2I7] for Smart Window and Photovoltaic Smart Window Applications.