Investing in biogas: Timing, technological choice and the value of flexibility from input mix