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