the mineral graphite is often used as