Mechanism of Photoreorientation of Azobenzene Dyes in Molecular Films