Thermodynamics and kinetics of grafting end-functionalized polymers to an interface