A posteriori estimates from approximate solutions of the Euler or Navier-Stokes equations