Construction and testing of a multichannel polariser for thermal neutrons