A new tool for accurate S-parameters measurements and permittivity reconstruction