A general framework for the construction of piecewise-polynomial local interpolants of minimum degree