French troops prepare to leave Afghanistan