A new model of thermionic emission mechanism for non-ideal Schottky contacts and a method of extracting electrical parameters