Chiral anomalies in N = 1 supersymmetric Yang-Mills theories