Effect of local electric field on trans to cis photo-isomerization of azobenzene containing polymer