Incorporating fabrication cost into topology optimization of discrete structures and lattices