Knotted optical vortices in exact solutions to Maxwell's equations