Thermal and wear analysis of an elastic beam in sliding contact