Samsung Elec second-quarter operating profit up 23% on strong chip sales