Modeling of three-dimensional electromagnetic band-gap structures