Equilibrium states of generalised singular value potentials and applications to affine iterated function systems