Seismic modelling of the pulsating mercury–manganese star HD 29589