What are the theoretical foundations behind the development of smart materials and their potential applications in mechanical engineering?