Curved-space trace, chiral, and Einstein anomalies from path integrals, using flat-space plane waves