An optimization model for a biorefinery system based on process design and logistics