Active acoustic metamaterials with tunable effective mass density by gradient magnetic fields