Algorithm for identification of damage on bridge piers