Iran agrees to reactor inspection