Controlling release patterns of the bioactive compound by structural and environmental conditions: a review