Scattering from generalized Cantor fractals