Multi-scale thermal and circuit analysis for nanometre-scale integrated circuits