Dissipativity of numerical schemes