Assembly-line synthesis of organic molecules with tailored shapes