Calculation of the T matrix and the scattering matrix for ensembles of spheres | Synapse