A neutron polarimeter with high energy resolution