The weight distribution of the third-order Reed-Muller code of length 512