Self-generated cosmic-ray turbulence can explain the morphology of TeV halos