A microbuckling method for determination of the residual stress in metal matrix composites