Extinction by stratified interstellar dust grains