Copied files from Nowotny's Brian 2 GeNN branch