Facing soaring memory-chip prices, the world’s biggest electronics companies are staring at a list of unpalatable responses: charging consumers more, eating the costs or rejiggering product specs.