Design of a horizontal neutron reflectometer for the European Spallation Source