NPS posts record 189 trillion won Q2 gain as chip stocks surge