Invariance of eigenfrequencies and eigenmodes under geometric transformation in elongated elastic structures