Taper of metamaterials designed by optical transformation