Smartphones power Samsung to record profit