Zaslat SMS: Mechanisms of stress generation and relaxation in thin films and coatings