The third order Melnikov function of a quadratic center under quadratic perturbation