Solar energy in agricultural ecosystems