Drug release modulation by physical restrictions of matrix swelling