I want to know the type of the semiconductor from its band structure. Is it true if I claim the semiconductor is p-type when the fermi level energy goes to near HOMO, or n-type when the fermi level energy goes to near LUMO? Or we need other way in order to claim the type of the semicondutor.