Efficient computation of periodic Green’s functions for printed structures with vertical elements