Thermodynamics of phase transition in higher dimensional AdS black holes