Calculation of the pseudoscalar masses from a QCD effective potential