On the formulation of two- and three-body relativistic equations employing light-front dynamics