A Survey on Security Applications of P4 Programmable Switches and a STRIDE-based Vulnerability Assessment