Coordination defects in amorphous silicon and hydrogenated amorphous silicon: A characterization from first-principles calculations