Identifying the keyhole stability and pore formation mechanisms in laser powder bed fusion additive manufacturing