Damage modelling and detection in beams and plates by analytical and numerical methods