The Peierls–Nabarro finite element model in two-phase microstructures – A comparison with atomistic