Mitigation of ground motion effects in linear accelerators via feed-forward control