Influence of magnetic field on plasma sheath and electron temperature