Difference between p type and n type semiconductors