The initial luminosity and mass functions of the Galactic open clusters