Flow sensing and control strategies to address race-tracking disturbances in resin transfer molding. Part I: design and algorithm development