Fractals in petrology