Spectral triples and the geometry of fractals