Multiresolution analyses based on fractal functions