Definition for polarization P and magnetization M fully consistent with Maxwell's equations