Study finds rise in gay characters on network TV