Stochastic Gravitational-wave Background from Binary Black Holes and Binary Neutron Stars and Implications for LISA