A contact problem of a thermoelastic rod with voids and microtemperatures