Magnetic cilia carpets with programmable metachronal waves