Dependence of the position of the knee in the Galactic cosmic ray spectrum on the explosion energy distribution of supernovae