Production of contact lenses