An LQG Optimal Linear Controller for Control Systems with Packet Losses