Deciphering the Impact of Pretraining Data on Large Language Models through Machine Unlearning