Theory, experiment and applications of metamaterials