Kronecker Products and Matrix Calculus with Applications