Numerically-exact simulations of arbitrary open quantum systems using automated compression of environments