Controlling length and areal density of artificial cilia through the dipolar assembly of ferromagnetic nanoparticles