Unification of dark matter and dark energy: the inhomogeneous Chaplygin gas