Void control for polymer-matrix composites (1): Theoretical and experimental methods for determining the growth and collapse of gas bubbles