Interface learning of multiphysics and multiscale systems