A least squares approach to joint beam design for interference alignment in multiuser interference channels