Group theoretical derivation of the minimal coupling principle