Rational modulation of the periodicity in linear hydrogen-bonded assemblies of trimesic acid on surfaces.