Anglo American takes $1.7bn writedown on Yorkshire fertiliser mine