Suboptimality analysis of receding horizon quadratic control with unknown linear systems and its applications in learning-based control