Interpretable learning of effective dynamics for multiscale systems