Investigation of the magnetic field characteristics of Herbig Ae/Be stars: Discovery of the pre-main sequence progenitors of the magnetic Ap/Bp stars