Internal Representations for the Generalization of Motor Memories