Samsung posted a fourth consecutive quarter of record earnings