P − V criticality of charged AdS black holes