Engineering Silver Nanomaterials : From Transparent Conductors To Resistive Switching Devices