Surface etching, chemical modification and characterization of silicon nitride and silicon oxide—selective functionalization of Si3N4 and SiO2