Exploring T-carbon for energy applications.