Design, implementation and validation of a GNSS measurement exclusion and weighting function with a dual polarized antenna