Accurate equation of state of the hard sphere fluid in stable and metastable regions