Principles and methods of tree-ring analysis