Text this: Optimal Design for One-Dimensional ALOHA Ad Hoc Networks Based on Stochastic Geometry