A survey on security applications of P4 programmable switches and a STRIDE-based vulnerability assessment