Static Stokes Ellipsometer: General Analysis and Optimization