Scattering from fractal dielectric profiles: the extended boundary condition method