Design, Construction, and Optimization of Microprobe Beamlines