Singular Optimal Control: The Linear-Quadratic Problem