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