Improvement of all-optical switching effect based on azobenzene-containing polymer films