Apple reported earnings that far exceeded Wall Street's expectations; Yahoo posts higher Q2 earnings but faces stiff competition from Facebook and Google