Deterministic Direct Aperture Optimization Using Multiphase Piecewise Constant Segmentation