Fundamental aspects of electrochemically controlled wetting of nanoscale composite materials.