A former surgeon who admitted sexually abusing hundreds of children in France has been sentenced to 20 years in prison.