Capital structure decisions and output market competition under demand uncertainty