Nikkei edges up as China stocks reverse course after rout