Full vectorial model for quantum optics in three-dimensional photonic crystals