Iran says its nuclear program is a peaceful effort to generate electricity , but critics fear Tehran is secretly working on nuclear weapons .