A study of the negative magnetoresistance in pyrocarbons