Robot shows how dinosaurs flapped feathers to scare prey