Optimal linear prediction in interelement interpolation problems of discrete signals and images