Contents:
Builds the scattering matrix of the stacks. It assumes that all the layers are alredy solved.
None.