A polymeric film responding in diffusion properties to environmental pH stimuli: a model for a self‐regulating drug delivery system