The optical properties of photonic-crystal nanocavities containing plasmonic nanoparticles