General approach to the analysis of plasmonic structures using spectroscopic ellipsometry