The Tunisian man who carried out the lorry attack in the French city of Nice researched his route in the days beforehand, French media reports say.