The linear-quadratic optimal regulation for continuous time-varying singular systems