Optimal sampled-data control of distributed parameter systems