Preparation of a graded-index polymeric preform by swollen bulk polymerization