Method of monitoring a composite material