Karhunen–Loeve functions for non-Kolmogorov turbulence