Molecular Factors Controlling the Isomerization of Azobenzenes in the Cavity of a Flexible Coordination Cage