Coupled dipole approximation of light scattering by clusters of