Nonminimal coupling, equivalence principle and exact Foldy-Wouthuysen transformation