Effective quark-antiquark potential for the constituent quark model