Fragmentation functions in nuclei