Stationary thermal convection in a viscoelastic ferrofluid