Observables and gauge invariance in the theory of nonlinear spacetime perturbations