Obama, Sarkozy discuss global economy, terrorism