Underlying role of mechanical rigidity and topological constraints in physical sputtering and reactive ion etching of amorphous materials