Structure-Activity Relationship of Porous Materials for Energy Conversion and Storage