Text this: Mechanisms of stress generation and relaxation in thin films and coatings