Zaslat SMS: Beam optics design and optimization of a compact focusing system for future colliders