Deconvolution and inverse problems on graphs with applications to source localization