Stationary layered solutions for a system of Allen-Cahn type equations