Curing kinetics and optimal cure schedules for underfill materials