Preparation of calcium carbide