Dynamics of photoinduced changes in birefringence and dichroism in a nematic phase containing an azobenzene as dopant