Obama: Diplomacy 'preferred solution' with Iran