Some limitations on the design of plane periodic electromagnets for undulators and free electron lasers