Principles and limitations of a quarter-wave plate for reducing the depolarization loss from thermally induced birefringence in Nd:YAG lasers