Pentaquark states in a diquark–triquark model