Dynamic polymer nanocomposites towards strain sensors and customizable resistors