Luminescence of intrinsic and extrinsic defects in hafnium oxide films