Smart materials for energy applications