Electromechanically reconfigurable CdS nanoplate based nonlinear optical device.