This project was part of aKnowledge Transfer Partnersh ip supported by the Technology Strategy Board and Watson Stonecra ft. The author gratefully acknowledges the support from Alastair
Craig, Paul Adebayo, Alan Ramsay of the University of Edinburgh and particularly Christian Smallwood, and Brian Coman, MEng stu- dents at the University of Edinburgh.