Iran open to talks but says it is fully prepared for war