Japan posts biggest jump in factory output in 6 months