Light-scattering properties of fractal aggregates: numerical calculations by a superposition technique and the discrete-dipole approximation