The representation and approximation for the weighted Moore-Penrose inverse