Permanent-magnet quadrupoles for an interdigital H -mode drift tube linear accelerator: Optimization code and adjustable magnet design