Obama: Iran nukes would pose 'grave threat'