An introduction to statistical energy analysis