The structure of sublattices of the product of n lattices