Formalising the pi-calculus using nominal logic (Logical Methods in Computer Science, 2009)