An adaptive optics approach to the reduction of misalignments and beam jitters in gravitational wave interferometers