Structural evolution and bonding mechanisms during ultrasonic consolidation of nanostructured powders and foils