Crack detection in elastic beams by static measurements