Scan profiles for neutron spectrometers. III. Rectangular‐profile elements by numerical methods