Compensation method for performance degradation of optically addressed spatial light modulator induced by CW laser