Samsung has been the world's biggest memory chipmaker for three decades but it increasingly faces competition in both conventional and advanced chips