Investigations of spectroscopic parameters and molecular constants for X1Σg+, w3Δu, and W1Δu electronic states of P2 molecule