Energy conversion by plants and bacteria