ENSEMBLE: perform replica-averaging on any collective variable