Dimensionality in swelling of polymer carriers and its importance in drug release