Intrinsic defects and luminescence of zinc oxide