Life-cycle assessment for energy analysis and management