First-principles investigations on the magnetic property in tripotassium doped picene