Photopolymerization of pigmented thiol–ene systems