Petrogenesis of PGE-bearing chromitites in layered intrusions