A time domain approach for the analysis of periodic structures using finite element analysis