Sparse Quadrature Approach to Bayesian Inverse Problems