Taiwan chipmaker PSMC to sell factory to US counterpart Micron for $1.8bn