The ground state of the three-dimensional random-field Ising model