Matrix-Based Ramanujan-Sums Transforms