Universal scaling of the self-field critical current in superconductors: from sub-nanometre to millimetre size