Fabrication and characterization of smart yarn for real-time mechanical sensing applications