France to end sale of diesel and gasoline vehicles by 2040