The Bastille Day terror attack in Nice, France has led to an outpouring of shock and sympathy, with world leaders calling the carnage an assault on democratic values.