Multivariate Time Series Clustering for Environmental State Characterization of Ground-Based Gravitational-Wave Detectors