Dust formation in stellar winds. II: Carbon condensation in stationary, spherically expanding winds