Thermoelastic stress analysis: temperature-strain relationship in concrete and mortar