Improving modal analysis of ID-periodic lines based on the simulation of finite structures