The role of local field modes in calculating the effective optical properties of metamaterials