On the parametric and external resonances of rectangular plates on an elastic foundation traversed by sequential masses