Transient chaos in optical metamaterials.