If the lengths of two adjacent sides of a parallelogram are $a$ and $b,$ and if the acute angle formed by these two sides is $\theta,$ show that the product of the lengths of the two diagonals is given by the expression
$$ \sqrt{\left(a^{2}+b^{2}\right)^{2}-4 a^{2} b^{2} \cos ^{2} \theta} $$