How do renewable energies acquire energy from the sun