Controlling static magnetic fields with positive and negative permeability metamaterials