A Strategy to avoid the truncation error in measurements using planar or cylindrical near-field scanning systems