A least-squares spectral collocation formulation for solving PDEs on complex geometry domains