Connection between sources formalism and correlation formalism for transport noise: Application to injection diodes