From concentration profiles to polymer osmotic equations of state.