Photocurable/thermosetting resin composition