Probing defects in friction stir welding process using temperature profile