Beam angle optimization for intensity-modulated radiation therapy using a guided pattern search method