A General Solution for Linear, Sampled-Data Control