Splitting least squares and collocation procedures for two-point boundary value problems