Reversible change of birefringence sign by optical and thermal processes in an azobenzene polymethacrylate