Automatically Learning Hybrid Digital Twins of Dynamical Systems