Design, manufacturing, and testing of phase-induced amplitude apodization and phase-shifting optics for segmented telescopes