An integrated photonic-diffusion model for holographic sensors in polymeric matrices