definition of p type and n type semiconductor