Least squares approximation method for the solution of Volterra-Fredholm integral equations