Stable stratification in wall-bounded turbulent flows