Capacity commitment and pricing for substitutable products under competition