Biorefineries for the production of first and second generation ethanol and electricity from sugarcane