In-situ pyroelectrical study of the polarization dynamics in nonlinear optical polymers and physico-chemical investigation of photo-induced degradation