The LAMOST spectroscopic survey of planetary nebulae in M31 and M33