Input-output pairing using balanced realisations