Static stability in freshwater lakes