Thermomagnetic effects in pyrolytic graphite