Gauge Invariance and the Transformation Properties of the Electromagnetic Four-Potential