Mechanics of energy transfer and failure of ductile microscale beams subjected to dynamic loading