Metasurface array for single-shot spectroscopic ellipsometry