Optimizing ethanol and bioelectricity production in sugarcane biorefineries in Brazil