Controlled Generation of Singlet Oxygen in Living Cells with Tunable Ratios of the Photochromic Switch in Metal-Organic Frameworks.