Thermomechanical behavior of resin bonded foundry sand cores during casting