Optics studies for the T9 beam line in the CERN PS East Area secondary beam facility