Critical Points and Phase Transitions in Polymeric Matrices for Controlled Drug Release