A unified treatment of boundary conditions in least-square based finite-volume methods