Characterization of porosity and defects on composite materials using X-ray computed tomography and image processing