Optimal time-delayed boundary control of beams using wavelets