Effect of intergranular exchange on thermal energy barrier distribution in longitudinal magnetic recording