An introduction to smart materials and structures