New formulas for the character varieties of two-bridge links