Gravar-mail: Effect of edge pruning on structural controllability and observability of complex networks