Average passivity for discrete-time and sampled-data linear systems