Investigation of bulk defects in amorphous and crystalline HfO2 thin films