Encapsulation of single-molecule magnets in carbon nanotubes