On the motive of a K3 surface