Cosmological variation of the deuteron binding energy, strong interaction, and quark masses from big bang nucleosynthesis