Optical detection of the spin state of a single nucleus in silicon