Discuss the theoretical principles behind the application of smart materials in civil engineering and their potential implications for infrastructure development, focusing on aspects like self-healing capabilities, adaptive functionality, and environmental resilience.