Near- and far-field light scattering by nonspherical particles: Applicability of methods that involve a spherical basis