A mechanical and geometrical approach to thermal contact resistance