On the existence of maximal solution for generalized algebraic Riccati equations arising in stochastic control