Discounted-Cost Linear Quadratic Output Regulation of Switched Linear Systems