Third-order resonant optical nonlinearity from trans–cis photoisomerization of an azo dye in a rigid matrix