Alternating-electric-field-enhanced reversible switching of DNA nanocontainers with pH