function to create product type interaction contrast matrices