Intelligent materials in unconventional oil and gas recovery