Diffusion and fracton dimensionality on fractals and on percolation clusters