Flapping of heavy inverted flags: a fluid-elastic instability