Finite-Time In-Network Computation of Linear Transforms