Nanovalve activation by surface-attached photoacids.