Curing kinetics of step-index and graded-index single mode polymer self-written waveguides