Templated self-assembly of one-dimensional CsPbX3 perovskite nanocrystal superlattices.