Testing decoherence in interference experiments with macromolecules: the theoretical background