Online Adaptation of Terrain-Aware Dynamics for Planning in Unstructured Environments