Abundances of Mg and K in the atmospheres of turn-off starsin Galactic globular cluster 47 Tucanae