Design and characterization of pH-triggered DNA nanoswitches and nanodevices based on DNA triplex structures