Ahmadinejad says peace talks doomed to fail