Automatic detection of equilibrated regions of molecular simulations