where did the tradition of flying flags at half staff come from and what does the custom mean