Determination of c and b quark masses