Shape effect on the optical properties of anisotropic silver nanocrystals