Quadrature rule-based bounds for functions of adjacency matrices