On the dimension of the space of magic squares over a field