Uptake and release of cargo molecules from responsive surfaces