Apparent coefficient of thermal expansion and residual stresses in multilayer capacitors