Tehran says its nuclear program will only be used to generate electricity .