Stability analysis of linear periodic systems via the Lyapunov equation