The impact of project flexibility on project choice and capital structure