Photo-processing of silicon nitride