Residual-stress analysis of an epoxy plate subjected to rapid cooling on both surfaces