Text this: Damage detection of beam by natural frequencies: General theory and procedure