Analysis of the conditioning number of the plane wave approximation for the helmholtz equation