Discrete Walsh operational matrices for analysis and optimal control of linear digital systems