The nuclear spectral function and the mass dependence of the EMC effect