Transient temperature rise of arbitrary contacts with uniform flux by surface element methods