W symmetry in conformal field theory