Energy conversion and management