Suppression of resist contamination during photolithography on carbon nanomaterials by a sacrificial layer