Density-dependent symmetry energy at subsaturation densities from nuclear mass differences