Resistant estimation for simultaneous-equations models using weighted instrumental variables