Unified analytical treatment for the current flow due to tunneling of electrons from metal into semiconductor