Temperature-responsive polymers within layer-by-layer assemblies