Influence of polydispersity on the macroscopic properties of granular materials