接近开关npn与pnp的区别