Theory of photonic crystal polaritons in periodically patterned multilayer waveguides