North Korea frees three US detainees