Frail and malnourished children and women lay on rows of hospital beds, their bodies bearing the scars of six months of captivity deep in the Nigerian bush.