Explain the difference between static global variables, static local variables, and static functions.