Water in K and M giant stars unveiled by ISO