Robust and optimal estimation for partially linear instrumental variables models with partial identification