Nonlinear Optical Switching in Regioregular Porphyrin Covalent Organic Frameworks.