Palm oil posts biggest gain in six weeks on stronger rivals