Photobleaching of chlorins in homogeneous and heterogeneous media