A unified construction of product formulas and convolutions for Sturm–Liouville operators