Boundary-element calculations of electromagnetic band-structure of photonic crystals