A traditional woolmill in Moray is set to give a 150-year-old waterwheel a new lease of life, using it to generate power and cut energy bills.