A note on the optimal addition of abscissas to quadrature formulas of Gauss and Lobatto type