A singularity test for the existence of common quadratic Lyapunov functions for pairs of stable LTI systems