Surface waves extraction and their effect on effective material parameters of metamaterials