Which scientist based his idea of the atom on the mass of each element?