Structured wave generator and device for diffracting a neutron beam into a structured wave