Thermal loading in multi-layered and/or functionally graded materials: Residual stress field, delamination, fatigue and related size effects