Optical dosimetry and treatment planning for photodynamic therapy