Riemannian manifolds with structure groupG2