Highly sensitive refractive-index sensor based on strong magnetic resonance in metamaterials