Samsung Electronics Beats on Earnings as Shipments Rise