An interference detection algorithm for COTS GNSS receivers