On the magnetostatics of chains of magnetic nanoparticles