The encapsulation and in situ rearrangement of polycrystalline SnO inside carbon nanotubes