Asian stocks close mixed, end week with gains