Judicial quality, input customisation, and trade margins: the role of product quality