Gradient models of the axion–photon coupling