Dual roles of nitric oxide in the regulation of tumor cell response and resistance to photodynamic therapy