Axion gauge symmetries and generalized Chern-Simons terms in N = 1 supersymmetric theories