The orientation of Yang-Mills moduli spaces and 4-manifold topology