Mean-field theory of photoinduced molecular reorientation in azobenzene liquid crystalline side-chain polymers