Bipolar spin-conversion diode and quantum entanglement induced by the valley and pseudoparity mixing