Investing in Biogas: Timing, Technological Choice and the Value of Flexibility from Inputs Mix